<?php
    header( "Content-type: text/html; charset=utf-8" );

    $rootPath = dirname( __FILE__ ) . '/../';
    $rootPath = str_replace(  '\\', '/', $rootPath );
    $rootPath = preg_replace( '|/[^/]+?/\.\./|', '/', $rootPath );

    define( 'ROOT_PATH', $rootPath     );
    define( 'DOMEN',     'manga.local' );

    define( 'UPLOAD_MAX_FILESIZE', 1024 * 1024 * 2 );

    define( 'DB_HOST',   'localhost'   );
    define( 'DB_PORT',   '3306'        );
    define( 'DB_NAME',   'manga'       );
    define( 'DB_USER',   'manga_admin' );
    define( 'DB_PASS',   'zqxwce132'   );

    define( 'TPL',      'template/'    );
    define( 'TEMP_TPL', 'template_c/'  );
    
    $adminMsg = '';

    unset( $rootPath );
?>